<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "index";
$route['404_override'] = '';
$route['ctv-(:num)'] = "index/index/index/$1";
//News
$route['news'] = "index/news/index";
$route['news/c(:num)/(:any)-(:num)'] = "index/news/index/$1/$2/$3";
$route['news/(:any)-(:num)'] = "index/news/index/$2/$1";
//Contact
$route['contact'] = "index/news/contact";
//Account
$route['account'] = "index/account";
$route['account/register'] = "index/account/register";
$route['account/logout'] = "index/account/logout";
$route['account/login'] = "index/account/login";
$route['account/forget_password'] = "index/account/forget_password";
$route['account/send_password'] = "index/account/send_password";
$route['account/reset_password/(:num)/(:any)'] = "index/account/reset_password/$1/$2";
$route['success'] = "index/success/index";
//Shop
$route['shop'] = "index/shop/index";
$route['shop/addwishlist/(:num)'] = "index/shop/addwishlist/$1";

$route['shop/c(:num)/(:any)-(:num)/(:num)'] = "index/shop/index/$1/$2/$3/$4";

$route['shop/c(:num)/(:any)-(:num)'] = "index/shop/index/$1/$2/$3";
$route['shop/(:any)-(:num)-page-(:num)'] = "index/shop/index/$2/$1/$3/$4/$5";

$route['shop/(:any)-(:num)'] = "index/shop/index/$2/$1";

$route['gallery/c(:num)/(:any)-(:num)'] = "index/gallery/index/$1/$2/$3";
$route['shop/checkout/cart'] = "index/shop/getCart";
$route['shop/checkout/customer-info'] = "index/shop/infoCart";
$route['tags/(:any)/(:any)'] = "index/shop/tags/$1/$2";
//Contact
$route['contact'] = "index/contact/index";
$route['Webservice/wsdl'] = "index/Webservice/index/wsdl";
$route['administrator/category/(:any)/(:any)'] = "administrator/category/$1/$2";
$route['administrator/category/(:any)'] = "administrator/category/index/$1";

/* End of file routes.php */
/* Location: ./application/config/routes.php */